package com.css.zfzx.sjcj.modules.hddcStrongSeismicCatalog.repository;

import com.css.zfzx.sjcj.modules.hddcStrongSeismicCatalog.repository.entity.HddcStrongseismiccatalogEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zyb
 * @date 2020-11-28
 */
public interface HddcStrongseismiccatalogRepository extends JpaRepository<HddcStrongseismiccatalogEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Strongseismiccatalog where project_name in :projectIds")
    List<HddcStrongseismiccatalogEntity> queryHddcStrongseismiccatalogsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Strongseismiccatalog where task_name in :projectIds")
    List<HddcStrongseismiccatalogEntity> queryHddcStrongseismiccatalogsByTaskId(List<String> projectIds);
}
